package com.bbzn.device.client.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.bbzn.device.client.dataobject.IotCard;
import java.util.List;
import com.bbzn.device.client.dao.iotcard.IotCardMapper;
import com.bbzn.device.client.service.IotCardService;

@Service
public class IotCardServiceImpl implements IotCardService {

    @Resource
    private IotCardMapper iotCardMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return iotCardMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(IotCard record) {
        return iotCardMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(IotCard record) {
        return iotCardMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(IotCard record) {
        return iotCardMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(IotCard record) {
        return iotCardMapper.insertSelective(record);
    }

    @Override
    public IotCard selectByPrimaryKey(Integer id) {
        return iotCardMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(IotCard record) {
        return iotCardMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(IotCard record) {
        return iotCardMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<IotCard> findByAll(IotCard iotCard) {
        return iotCardMapper.findByAll(iotCard);
    }

    @Override
    public int updateBatch(List<IotCard> list) {
        return iotCardMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<IotCard> list) {
        return iotCardMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<IotCard> list) {
        return iotCardMapper.batchInsert(list);
    }

    @Override
    public int updateImeiByIccid(String iccid, String imei) {
        return iotCardMapper.updateImeiByIccid(iccid, imei);
    }

    @Override
    public int updateByIccidSelective(IotCard record) {
        return iotCardMapper.updateByIccidSelective(record);
    }

    @Override
    public IotCard findOneByCardNum(String cardNum) {
        return iotCardMapper.findOneByCardNum(cardNum);
    }
}

